package com.cucn.ingmall.seckill.scheduled;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 *
 * @author KouChaoJie
 * @since: 2022/2/11 11:02
 */
@Slf4j
//@EnableAsync
//@EnableScheduling
//@Component
public class HelloSchedule {

    /**
     * 定时任务
     */
//    @Async
//    @Scheduled(cron = "* * * * * ?")
    public void hello() {
        log.info("hello...");
    }
}
